{% extends 'layout.html' %}

{% block content %}
    <div class="panel panel-default">
        <div class="panel-heading">修改用户</div>
        <div class="panel-body">
            <form method="post" novalidate>
                {% csrf_token %}

                {% for field in form %}
                    <div class="form-group">
                        {% comment %}
                        <label>姓名</label>
                        <input type="text" class="form-control" name="add_name" placeholder="姓名">
                        {% endcomment %}

                        <label>{{ field.label }}</label>
                        {{ field }}
                        <span style="color: red">{{ field.errors.0 }}</span>
                    </div>
                {% endfor %}

                <button type="submit" class="btn btn-primary">提 交</button>

            </form>
        </div>
    </div>

{% endblock %}